import { HttpService } from '@/utils/http';
import { API } from '@/utils/configs';
import { ReturnResult } from '@/types/http';
import { IFieldItemData } from '@/types/data';

class DetailHttpService extends HttpService {
  getDetail(id: string) {
    return this.axiosGet<{ id: string }, ReturnResult<IFieldItemData>>({
      url: `${API.GET_DETAIL}/${id}`,
    });
  }
}

export const detailHttpService = new DetailHttpService();
